package tests;

import lib.*;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Tri tri = null;
		
		// tri = new TriDenombrement(10);

		// tri = new TriBulles(10);
		 
		
		 //tri = new TriSelection(10);
		 
		
		 tri = new TriInsertionSequentielle(10);
		 
		new Test(tri, true);
	}
	
	public Test(Tri tri, boolean debugMode)
	{
		if(debugMode)
		{
			tri.setModDebug(true);
		}
		this.testTri(tri);
	}
	
	private void testTri(Tri tri)
	{
		System.out.println("Tableau de base :");
		tri.afficheTableau();
		
		tri.tri();
		System.out.println("\n\nTableau trie :");
		tri.afficheTableau();
	}	
}
